package com.ruoyi.project.propertySystem.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 巡检记录对象 inspect_record
 * 
 * @author wangshuo
 * @date 2021-02-14
 */
public class InspectRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 巡检模板id */
    @Excel(name = "巡检模板id")
    private Long formworkId;

    /** 站点id */
    @Excel(name = "站点id")
    private Long stationId;

    /** 是否巡检完成 */
    @Excel(name = "是否巡检完成")
    private Integer status;

    /** 巡检人员 */
    @Excel(name = "巡检人员")
    private Long inspectUser;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModify;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFormworkId(Long formworkId) 
    {
        this.formworkId = formworkId;
    }

    public Long getFormworkId() 
    {
        return formworkId;
    }
    public void setStationId(Long stationId) 
    {
        this.stationId = stationId;
    }

    public Long getStationId() 
    {
        return stationId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setInspectUser(Long inspectUser) 
    {
        this.inspectUser = inspectUser;
    }

    public Long getInspectUser() 
    {
        return inspectUser;
    }
    public void setModifyBy(String modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() 
    {
        return modifyBy;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(Date gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public Date getGmtModify() 
    {
        return gmtModify;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("formworkId", getFormworkId())
            .append("stationId", getStationId())
            .append("status", getStatus())
            .append("inspectUser", getInspectUser())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("modifyBy", getModifyBy())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModify", getGmtModify())
            .toString();
    }
}
